<!DOCTYPE html>
<html>
<head>
    <title>测试this</title>
    <meta charset="utf-8"/>
    <script src="../../js/jquery-1.10.1.min.js"></script>
    <script>
        function Foo(){
            this.name = "王";
            this.year = 1988;
            console.log(this);
        }

        var f1 = new Foo();

        console.log(f1.name);
        console.log(f1.year);

        Foo();
    </script>
</head>
<body>
    <p>测试this测试this</p>
</body>
</html>